package Models;

import java.util.LinkedList;
import java.util.List;

public class StandardGameModel implements GameModel {
	
	private BoardModel2D board;
	private Player player1;
	private Player player2;
	private Player currentPlayer;
	
	
	public StandardGameModel(BoardModel2D board, Player player1, Player player2) {
		this.board = board;
		this.player1 = player1;
		this.player2 = player2;
		currentPlayer = player1;
	}

	@Override
	public Player getCurrentPlayer() {
		
		return currentPlayer;
	}

	@Override
	public List<Player> getPlayers() {
		List<Player> players = new LinkedList<Player>();
		players.add(player1);
		players.add(player2);
		return players;
	}

	@Override
	public BoardModel2D getBoard() {
	
		return board;
	}

	
	@Override
	public void setCurrentPlayer(Player player) {
		currentPlayer = player;
	}

}
